Need to create a script to go though folders and subfolders, open modules.

Hi,

I need to create a script which will go through a directory, and for each subdirectory underneath it looking for modules, opening these modules, performing an action(This current action is in a script, and works on a single module), and then closing the module.

I have seen some scripts on smartdxl.com, but have not been able to adapt these to my needs.

Any suggestions?

Thank you.
Gedinfo - Sat Feb 12 11:35:41 EST 2011

Re: Need to create a script to go though folders and subfolders, open modules.
SystemAdmin - Sat Feb 12 12:11:05 EST 2011

Do you mean that the "Run DXL on selected modules" in page http://www.smartdxl.com/content/?page_id=71 did not work for you?

Re: Need to create a script to go though folders and subfolders, open modules.
Gedinfo - Sat Feb 12 12:25:14 EST 2011

SystemAdmin - Sat Feb 12 12:11:05 EST 2011
Do you mean that the "Run DXL on selected modules" in page http://www.smartdxl.com/content/?page_id=71 did not work for you?

I have just tried this script, but do not wish to select the approximately 50 modules that I wish to perform my script on.
There was no folder listed, only modules. I wish to be able to select a folder, and perform my script on every module underneath the parent folder.

My script is also set up to write information to a file, then close the file. Each subsequent time through, is my file added to, or overwritten?

I use Stream out = write strFilename
for my script, and close out when it finishes.

Re: Need to create a script to go though folders and subfolders, open modules.
SystemAdmin - Sat Feb 12 12:52:08 EST 2011

Gedinfo - Sat Feb 12 12:25:14 EST 2011
I have just tried this script, but do not wish to select the approximately 50 modules that I wish to perform my script on.
There was no folder listed, only modules. I wish to be able to select a folder, and perform my script on every module underneath the parent folder.

My script is also set up to write information to a file, then close the file. Each subsequent time through, is my file added to, or overwritten?

I use Stream out = write strFilename
for my script, and close out when it finishes.

Well, change the write to append.

Re: Need to create a script to go though folders and subfolders, open modules.
Gedinfo - Sat Feb 12 13:23:18 EST 2011

SystemAdmin - Sat Feb 12 12:52:08 EST 2011
Well, change the write to append.

Thank you, append is what I was looking for.
I am using the Report Access Rights on All Items(modified to only use the recursive folder capability),
but find that the modules appear multiple times, instead of the one that I need.